package cn.lg.soar.boot.fc.pojo;

import lombok.Data;
import org.springframework.data.annotation.Id;

import java.util.HashMap;
import java.util.Map;

@Data
public class FcFormCollectDetail {

	@Id
    private String id;
    private Long formCollectId;
    private Map<String, Object> fields = new HashMap<>();

    public void setFormCollectId(Long formCollectId) {
        this.formCollectId = formCollectId;
    }

    public Long getFormCollectId() {
        return formCollectId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

	public Map<String, Object> getFields() {
		return fields;
	}

	public void setFields(Map<String, Object> fields) {
		this.fields = fields;
	}

	public void setField(String key, Object value) {
        fields.put(key, value);
    }

    public Object getField(String key) {
        return fields.get(key);
    }
}
